/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package servicios;

import dao.EditorialDaoLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import modelo.Editorial;

/**
 *
 * @author ADM
 */
@Stateless
public class EditorialLn implements EditorialLnLocal {
    @EJB
    private EditorialDaoLocal editorialDao;

    public void registrar(Editorial editorial) {

        editorialDao.crear(editorial);
    }

    public void modificar(Editorial editorial) {
        editorialDao.editar(editorial);
    }

    public void eliminar(Editorial editorial) {
        editorialDao.remover(editorial);
    }

    public List<Editorial> getLista() {
        return  editorialDao.getTodos();
    }









    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
